package com.wpw.dream.copy;

public final class StringCopy {

	public void changeName(String name) {
		name = name + "haha";
	}
	
	public void changeBuilder(StringBuilder sb) {
		sb.append("aaa");
//		sb = new StringBuilder("aa").append("bb");
	}
	
	public static void main(String[] args) {
		StringCopy sc = new StringCopy();
		String s = new String("名字");
		sc.changeName(s);
		System.out.println(s);
		
		StringBuilder sb = new StringBuilder("wo");
		sc.changeBuilder(sb);
		System.out.println(sb.toString());
	}

}
